<!--<?php
print <<<EOT
-->
<div class="div_clear" style="height:5px;"></div>
<div class="admin_out">
		<form id="topicsform" onsubmit="return false;">
		<div class="admin_title">主题管理</div>
		<div class="admin_a2">
			<input type="checkbox" onclick="selectall('topicsform', this.checked)" class="checkbox_css" /> 全选 
			<select onchange="changeAction()" id="postaction" name="postaction">
				<option value="NOTHING">请选择操作</option>
				<optgroup label="------------------------">
					<option value="movePost">移动至版块</option>
					<option value="delPost">删除</option>
					<option value="upPost">提升</option>
					<option value="stampPost">鉴定</option>
					<option value="highlightPost">高亮</option>
				</optgroup>
				<optgroup label="------------------------">
					<option value="coverPost">屏蔽帖子内容</option>
					<option value="coverPost_">解除屏蔽</option>
				</optgroup>
				<optgroup label="------------------------">
					<option value="lockPost">锁定帖子</option>
					<option value="lockPost_">解锁帖子</option>
				</optgroup>
				<optgroup label="------------------------">
					<option value="topPost">置顶</option>
					<option value="topPost_">解除置顶</option>
				</optgroup>
				<optgroup label="------------------------">
					<option value="alltopPost">总置顶</option>
					<option value="alltopPost_">解除总置顶</option>
				</optgroup>
				<optgroup label="------------------------">
					<option value="goodPost">设置为精华</option>
					<option value="goodPost_">取消精华</option>
				</optgroup>
			</select>
			<select name="movetofid" id="movetofid" style="display:none;">{$cache_forumsoption2}</select>
			<select name="stampid" id="stampid" style="display:none;"><option value="0">取消鉴定</option>{$cache_stampsoption}</select>
			<span id="highlightopt" style="display:none;">
				<input type="text" class="text_css" size="8" style="" value="" id="highlightcolor" name="highlightfontC" onfocus="colorpicker.choose(event);" /> <img src="images/ico_color.gif" align="absmiddle" border="0" id="img_color" class="colorpicker" onclick="colorpicker.choose(event);" /> &nbsp; 
				<input type="checkbox" value="1" name="highlightfontB[]" id="highlightfontB" class="checkbox_css" /><b>B</b>
				<input type="checkbox" value="1" name="highlightfontI[]" id="highlightfontI" class="checkbox_css" /><i>I</i> 
				<input type="checkbox" value="1" name="highlightfontU[]" id="highlightfontU" class="checkbox_css" /><u>U</u>
			</span>
			<input type="hidden" value="{$fid}" name="fid" id="fid" /><input type="button" class="button_css" value=" 提 交 " onclick="ajax_dotopics_yn()" />
		</div>

		<table class="forum_a1">
			<thead><tr><td width="30px">类型</td><td>标题 ( <a href="admin.php?fid={$fid}&orderby=replynum">热门</a> | <a href="admin.php?fid={$fid}&orderby=isgood">精华</a> | 时间: <a href="admin.php?fid={$fid}&orderby=lastreply&d=86400">天</a> <a href="admin.php?fid={$fid}&orderby=lastreply&d=604800">周</a> <a href="admin.php?fid={$fid}&orderby=lastreply&d=2592000">月</a> )</td><td width="120px" style="text-align:center;"><a href="admin.php?fid={$fid}&orderby=author">作者</a> / <a href="admin.php?fid={$fid}&orderby=posttime">时间</a></td><td width="100px" style="text-align:center;"><a href="admin.php?fid={$fid}&orderby=replynum">回复</a> / <a href="admin.php?fid={$fid}&orderby=hits">人气</a></td><td width="120px" style="text-align:right;"><a href="admin.php?fid={$fid}&orderby=lastreply">最后发表</a></td></tr></thead>
<!--
EOT;
	foreach($rows as $row){
print<<<EOT
-->
			<tbody><tr><td align="center"><a href="view.php?tid={$row['id']}" target="_blank" title="{$row['icon'][1]}"><img src="images/topic/{$row['icon'][0]}.gif" border="0" /></a></td><td><input type="checkbox" value="{$row['id']}" name="tids[]" class="checkbox_css" /> <a class="title" href="view.php?tid={$row['id']}" target="_blank">{$row['title']}</a></td><td style="text-align:center;"><a href="user.php?uid={$row['userid']}">{$row['username']}</a><br /><span class="time">{$row['posttime']}</span></td><td style="text-align:center;"><span class="reply">{$row['replynum']}</span> / {$row['hits']}</td><td style="text-align:right;"><a href="user.php?username={$row['rowuser']}">{$row['rowuser']}</a><br /><span class="time">{$row['rowlasttime']}</span></td></tr></tbody>
<!--
EOT;
	}
print<<<EOT
-->
		</table>
		</form>
</div>
<div class="admin_out forum_post">
	<table class="post"><tr><td class="right">{$pager->getPageStr()}</td></tr></table>
</div>
<script type="text/javascript">
window.onload=admintopic_PageInit;
</script>
<!--
EOT;
?>
-->